public class Date2 {
    public int year;
    public int month;
    public int day;

    //alt+ins快速生成构造方法

    public void Date2(int year, int month, int day) {
        System.out.println(this.year);
        System.out.println(this.month);
        System.out.println(this.day);
    }
}
